<h3> Pesquisar por Sala de aula </h3>

<%= form_tag pesquisar_aula_saladeaula_path, :method => 'get' do %>

  <p>
	 <%= select_tag :pred_id, options_for_select(@predios.collect{ |u| [u.nome, u.id]}), :include_blank => true %><br/>
   <%= text_field_tag :sala_num, params[:sala_num]%></p>

    <%= time_select :horarioI, params[:horarioI] %></p>
    <%= time_select :horarioT, params[:horarioT] %></p>

   <%= submit_tag 'Pesquisar' %>
  </p>
<% end %>

<% if !@aulas.blank? %>
	<h5><%=  %></h5>
    <% @aulas.each do |aula| %>

        <%= link_to "#{(aula.codigo)} #{aula.disciplina} #{aula.professor} ", pesquisar_aula_show_path(:aula_id => aula.id) %><br />

    <% end %>

<% end %>
<%= link_to "Voltar para Pesquisar Aula", pesquisar_aula_index_path %>